/**
 * 
 */
package com.gs.librarian.service;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.gs.librarian.common.ApplicationException;
import com.gs.librarian.model.vo.RegistrationVo;
import com.gs.librarian.model.vo.UserVO;

/**
 * @author sabuj.das
 *
 */
public interface UserService {

	@Transactional(propagation=Propagation.REQUIRED)
	UserVO login(String userName, String password) throws ApplicationException;
	
	@Transactional(propagation=Propagation.REQUIRED)
	String register(RegistrationVo registrationVo) throws ApplicationException;
	
}
